﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Text;

using DreamCube.Framework.DataAccess.Basic;
using DreamCube.Framework.DataAccess.Oracle2;

namespace Test
{
    class TestConnectOracle
    {
        public static void Connect()
        {
            String connectionStr = ConfigurationManager.AppSettings["connectionString"];
            Database db = DBManager.GetDBByConnectionString(connectionStr, DBProviderType.Oracle);
            Console.WriteLine(db.ExecuteScalar("select count(*) from xtsz_user"));
        }
    }
}
